<%@page import="com.wframe.framework.util.UploadUtil"%>
<%@ page pageEncoding="utf-8"%>
<%@taglib uri="/WEB-INF/page-base.tld" prefix="w"%>
<%String path=request.getContextPath(); 
request.setAttribute("fileserver", UploadUtil.getConfig().getDownserver());
%>


<!-- 内容开始 -->
<form id="infoform" action="/information/InformationPage.page" method="post">
	<w:hidden bind="bean.code"/>
	<w:hidden bind="pageSize_"/>
	<w:hidden bind="pageNum"/>
	<!-- 查询区域 -->
	<div class="easyui-panel ui-queryBar" border="false" data-options="doSize:false">
		<table cellpadding="0" cellspacing="0" style="margin-top:5px">
			<tr>
				<td>&nbsp;标题：</td><td><w:text bind="bean.title"/></td>
				<td>
					&nbsp;<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_search" onclick="$w.execForm({pageNum:1})">查询</a>
				</td>
			</tr>
		</table>
	</div>
	<!-- 按钮区域 -->
	<div class="easyui-panel ui-toolBar" border="false" data-options="doSize:false">
		<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_add" plain="true" onclick="add()">添加</a>
		<a href="javascript:;" class="easyui-linkbutton" iconCls="icon_del" plain="true" onclick="delall()">删除</a>
	</div>
	<!-- 数据列表区域 -->
	<table class="ui-table" width="100%" cellpadding="1" cellspacing="1" data-options="showPage:true,
																						pageNum:<w:write bind="pageNum"/>,
																						pageSize:<w:write bind="pageSize_"/>,
																						total:<w:write bind="pagination.totalCount"/>">
		<thead>
			<tr class="ui_th">
				<td width="35" align="center"><input type="checkbox" onclick="$selAllTbBoxs(this)"></td>
				<td width="90">所属栏目</td>
				<td >标题</td>
				<td width="100">标题图片</td>
				<td width="80" >类型</td>
				<td width="120">链接地址</td>
				<td width="80" align="center">编辑</td>
			</tr>
		</thead>
		<tbody>
		<w:iterate id="info" bind="resultList_">
			<tr class="ui_td">
				<td align="center"><input type="checkbox" name="primaryKey_" value="<w:write bind="#info.id"/>"></td>
				<td><w:write bind="#info.channelname"/></td>
				<td><w:write bind="#info.title"/></td>
				<td ><w:notEqual bind="#info.PHOTOTITLE" value=""><img src="${fileserver }<w:write bind="#info.PHOTOTITLE"/>" style="width:90px;height:50px;"></w:notEqual></td>
				<td><w:write bind="#info.type" dict="InformationTag"/></td>
				<td><w:notEqual bind="#info.url" value=""><p style="width:120px;display: -webkit-box; text-overflow: ellipsis; overflow : hidden; -webkit-line-clamp: 1; -webkit-box-orient: vertical;"><a href="<w:write bind="#info.url"/>" target="_blank"><w:write bind="#info.url"/></a></p></w:notEqual></td>
				<td align="center">
					<a href="javascript:;" onclick="edit('<w:write bind="#info.id"/>')" class="data_edit" title="修改"></a>
				</td>
			</tr>
		</w:iterate>
		</tbody>
	</table>
</form>
<!-- 内容结束 -->